﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace ImPM.Application
{
    public class ImPMPerformanceCounter
    {
        // Fields
        private PerformanceCounter _pc;

        // Methods
        public ImPMPerformanceCounter(PerformanceCounter pc)
        {
            this._pc = pc;
        }

        public void DecrementBy(long value)
        {
            this._pc.RawValue -= value;
        }

        public void IncrementBy(long value)
        {
            this._pc.IncrementBy(value);
        }

        // Properties
        public PerformanceCounter PC
        {
            get
            {
                return this._pc;
            }
        }
    }
}
